package com.momo.cloudspringadminserver;

import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableAdminServer
@EnableDiscoveryClient //让注册中心能够发现 ,可以是其他注册中心
public class CloudSpringAdminServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudSpringAdminServerApplication.class, args);
    }
}
